package leetcode;

public class Test1470 {
    public int[] shuffle(int[] nums, int n) {
        int[] newNums=new int[nums.length];

        for(int i=0;i<n;i++){
            newNums[2*i]=nums[i];
            newNums[2*i+1]=nums[i+n];
        }
        return newNums;
    }
}
